package com.test.proxy.demo1;

public class MyProxy implements UserDao{

    private UserDaoImpl target = new UserDaoImpl();

    @Override
    public void save() {
        System.out.println("代理操作开启事务");
        target.save();
        System.out.println("代理操作提交事务");

    }

    @Override
    public void find() {
        target.find();
    }
}